package com.sk.coin.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统资讯公告信息
 * </p>
 *
 * @author Administrator
 * @since 2022-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 标题
     */
    @TableField("title")
    @ApiModelProperty(value = "标题")
    @NotBlank
    private String title;

    /**
     * 简介
     */
    @TableField("description")
    @ApiModelProperty(value = "简介")
    @NotBlank
    private String description;

    /**
     * 作者
     */
    @TableField("author")
    @ApiModelProperty(value = "作者")
    @NotBlank
    private String author;

    /**
     * 文章状态
     */
    @TableField("status")
    @ApiModelProperty(value = "文章状态")
    private Integer status;

    /**
     * 文章排序，越大越靠前
     */
    @TableField("sort")
    @ApiModelProperty(value = "文章排序,越大越靠前")
    @NotBlank
    private Integer sort;

    /**
     * 内容
     */
    @TableField("content")
    @ApiModelProperty(value = "内容")
    @NotBlank
    private String content;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date lastUpdateTime;

    /**
     * 创建日期
     */
    @TableField(value = "created",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date created;


}
